import json

def build_data(file_path):
    """读取数据文件并转化成参数化的格式"""
    with open(file_path,"r",encoding='utf-8') as f:
        data = json.load(f)
        print(data)
#     #[{},{},{}] 转换为 [(),(),()]
        new_list = []
        for item in data:
            new_list.append(tuple(item.values()))
        return new_list
#
#
# if __name__ == '__main__':
    aa=build_data("../data/login_data.json")
    print(aa)